uisong
<template>
  <div class="left" @click.stop @mousedown.stop @mouseup.stop @touchstart.stop>
    <TreeComponent :show-search="true" :show-checkbox="false" :default-expand-all="true"
      @node-click="handleNodeClick" />
  </div>
</template>

<script setup>
import TreeComponent from '@/modules/TreeComponent.vue'

// 节点点击事件处理
const handleNodeClick = (data, node) => {
  console.log('点击节点:', data, node)
  // 可以在这里处理节点点击逻辑，比如路由跳转、数据加载等
}
</script>
<style scoped lang="scss">
.left {
  width: 230px;
  height: 100%;
  z-index: 999;
  position: relative;
  box-sizing: border-box;
  padding: 20px 12px 12px 20px;
  background: linear-gradient(to top,
      rgba(255, 255, 255, 0.5),
      rgba(214, 231, 255, 0.9));
  backdrop-filter: blur(4px);
  border-radius: 10px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
</style>